try:
    number =int(input('请输入数字:'))
    result = 1/number
    print(result)

except Exception as e:
    print('数据格式错误')
    print(e)

else:
    print('数据格式正确')